<?php
class Categorymanager_Data_Getallcategories implements Categorymanager_Data_Mainable {
    
    private $core_controller_selectdata;
    
    public function __construct() {
        $this->core_controller_selectdata = new Core_Controller_Selectdata;
    }
    
    public function main(array $variables = null) {
        $variables['query'] = "SELECT category_settings.category_name, category_content_values.category_title, category_meta_values.category_meta_description, category_meta_values.category_meta_keywords FROM category_settings, category_meta_values, category_content_values WHERE category_settings.category_name = category_meta_values.category_name AND category_settings.category_name = category_meta_values.category_name AND category_content_values.category_name = category_meta_values.category_name ORDER BY category_content_values.category_title ASC;";
        //echo $variables['query'];
        //die();
        return $this->core_controller_selectdata->main($variables);
    }

}
